﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuildPlannerLib.Buildings
{
    // Class for a basic production facility.
    public class IndividualBuilding
    {
        // Boolean property for whether the building is in-use
        private bool inUse;
        public bool InUse
        {
            get { return inUse; }
            set { inUse = value; }
        }

        // Basic constructor
        public IndividualBuilding()
        {
            InUse = false;
        }

        // Starts producing from the building
        public virtual void StartProduction()
        {
            InUse = true;
        }

        // Finishes producing from the building
        public virtual void FinishProduction()
        {
            InUse = false;
        }
    }
}
